package com.gs.weather.entity;

import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Alias("DisasterSubtype")
public class DisasterSubtype {
    private Integer id;
    private Integer disasterTypeId;
    private String name;
    private String description;
    private List<DisasterSubtypeStrength> disasterSubtypeStrengths;//包含多个灾害强度


    public DisasterSubtype() {
    }

    public DisasterSubtype(Integer disasterTypeId, String name, String description) {
        this.disasterTypeId = disasterTypeId;
        this.name = name;
        this.description = description;
    }


    public List<DisasterSubtypeStrength> getDisasterSubtypeStrengths() {
        return disasterSubtypeStrengths;
    }

    public void setDisasterSubtypeStrengths(List<DisasterSubtypeStrength> disasterSubtypeStrengths) {
        this.disasterSubtypeStrengths = disasterSubtypeStrengths;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDisasterTypeId() {
        return disasterTypeId;
    }

    public void setDisasterTypeId(Integer disasterTypeId) {
        this.disasterTypeId = disasterTypeId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "DisasterSubtype{" +
                "id=" + id +
                ", disasterTypeId=" + disasterTypeId +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", disasterSubtypeStrengths=" + disasterSubtypeStrengths +
                '}';
    }
}
